package com.mine.common.repository.base;

import lombok.Data;
import org.bson.types.Binary;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

@Data
@Document(collection = "mine_thumbnail")
public class Thumbnail {
	
    @Id  // 主键
    private String id;
    @Field("name")
    private String name; // 文件名称
    @Field("contentType")
    private String contentType; // 文件类型
    @Field("size")
    private long size;
    @Field("content")
    private byte[] content; // 文件内容
    @Field("uploadDate")
    private Date uploadDate;
	
}
